#include <glib/g2/box.h>

#include <algorithm>

namespace g2 {
/*
box & box::normalize() {
	if (x2 < x1)
		std::swap(x1, x2);
	if (y2 < y1)
		std::swap(y1, y2);
	return * this;
}

box & box::inflate(double dx, double dy) {
	x1 -= dx;
	y1 -= dy;
	x2 += dx;
	y2 += dy;
	return * this;
}

box & box::include(const vector & v)
{
	if (x1 > v.x)
		x1 = v.x;
	if (y1 > v.y)
		y1 = v.y;
	if (x2 < v.x)
		x2 = v.x;
	if (y2 < v.y)
		y2 = v.y;
	return * this;
}
*/
} // g2
